package com.edgegateway.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.edgegateway.common.annotation.Excel;
import com.edgegateway.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 边缘设备对象 iot_edge_devices
 * 
 * @author ruoyi
 * @date 2023-01-03
 */
@Data
public class IotEdgeDevices extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private String id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String devicesName;

    /**  */
    @Excel(name = "")
    private String gatewayId;

    /**  */
    @Excel(name = "")
    private String ruleFlowId;

    /**  */
    @Excel(name = "")
    private Integer status;

    /**  */
    @Excel(name = "")
    private String deleted;

    /** 主题 */
    @Excel(name = "主题")
    private String topic;

    /** 部署时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "部署时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deployTime;

    /** 经度 */
    @Excel(name = "经度")
    private BigDecimal pointX;

    /** 纬度 */
    @Excel(name = "纬度")
    private BigDecimal pointY;

    /** 高度 */
    @Excel(name = "高度")
    private BigDecimal hight;

    /** 客户端id */
    @Excel(name = "客户端id")
    private String clientId;

    private String gatewayName;

    private String ruleFlowName;

    /** 定位方式(1=ip自动定位，2=设备定位，3=自定义) */
    @Excel(name = "定位方式(1=ip自动定位，2=设备定位，3=自定义)")
    private Integer locationType;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setDevicesName(String devicesName) 
    {
        this.devicesName = devicesName;
    }

    public String getDevicesName() 
    {
        return devicesName;
    }
    public void setGatewayId(String gatewayId) 
    {
        this.gatewayId = gatewayId;
    }

    public String getGatewayId() 
    {
        return gatewayId;
    }
    public void setRuleFlowId(String ruleFlowId) 
    {
        this.ruleFlowId = ruleFlowId;
    }

    public String getRuleFlowId() 
    {
        return ruleFlowId;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setDeleted(String deleted) 
    {
        this.deleted = deleted;
    }

    public String getDeleted() 
    {
        return deleted;
    }
    public void setTopic(String topic) 
    {
        this.topic = topic;
    }

    public String getTopic() 
    {
        return topic;
    }
    public void setDeployTime(Date deployTime) 
    {
        this.deployTime = deployTime;
    }

    public Date getDeployTime() 
    {
        return deployTime;
    }
    public void setPointX(BigDecimal pointX) 
    {
        this.pointX = pointX;
    }

    public BigDecimal getPointX() 
    {
        return pointX;
    }
    public void setPointY(BigDecimal pointY) 
    {
        this.pointY = pointY;
    }

    public BigDecimal getPointY() 
    {
        return pointY;
    }
    public void setHight(BigDecimal hight) 
    {
        this.hight = hight;
    }

    public BigDecimal getHight() 
    {
        return hight;
    }
    public void setClientId(String clientId) 
    {
        this.clientId = clientId;
    }

    public String getClientId() 
    {
        return clientId;
    }
    public void setLocationType(Integer locationType) 
    {
        this.locationType = locationType;
    }

    public Integer getLocationType() 
    {
        return locationType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("devicesName", getDevicesName())
            .append("gatewayId", getGatewayId())
            .append("ruleFlowId", getRuleFlowId())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .append("remark", getRemark())
            .append("topic", getTopic())
            .append("deployTime", getDeployTime())
            .append("pointX", getPointX())
            .append("pointY", getPointY())
            .append("hight", getHight())
            .append("clientId", getClientId())
            .append("locationType", getLocationType())
            .toString();
    }
}
